package com.crm.business.service;

import com.crm.business.domain.TbBusiness;
import com.crm.business.domain.TbBusinessRecord;
import com.crm.business.domain.dto.TbBursinessDto;
import com.crm.business.domain.vo.TbBusinessVo;
import com.crm.common.domain.vo.AssignMentVo;

import java.util.List;

public interface BusinessService {

    // 新增商机
    void add(TbBusiness tbBusiness);
    // 查询所有商机(分页)
    List<TbBusinessVo> selectBusinessList(TbBusinessVo tbBusinessVo);
    // 查询单个商机详情
    TbBusiness getById(Long id);
    // 查询商机池
    List<TbBusiness> selectBusinessPool(TbBusiness tbBusiness);
    //分配商机
    void assignment(AssignMentVo assignMentVo);

    // 查询商机跟进记录
    List<TbBusinessRecord> selectRecordList(Long id);

    // 添加跟进记录
    int addRecord(TbBursinessDto tbBursinessDto);

    // 商机踢回公海池
    int updateBusinessRecord(Long id, String reasons);

    // 从公海池捞取
    int updateAgin(AssignMentVo assignMentVo);
}
